public class Test {

    public static void main1(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        //mySingleLinkedList.creatList();
        mySingleLinkedList.addFirst(1);
        mySingleLinkedList.addFirst(2);
        mySingleLinkedList.addLast(5);
        mySingleLinkedList.addIndex(0, 2);
        //mySingleLinkedList.remove(2);
        mySingleLinkedList.removeAllKey(2);
        mySingleLinkedList.display();
        System.out.println(mySingleLinkedList.size());
        System.out.println(mySingleLinkedList.contains(5));
    }
}
